﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "ViewText";
	string DBTablePK = "aid";
	string DBTableTitle = "name";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"viewtext.name1\":\"###.00\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="ViewText.name" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="ViewText" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="aid" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="name" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "ViewText", fieldStatus, displayModel);
	});
</script>
<table class="flowformtable" id="flowformtable1" data-sort="sortDisabled" width="1686" cellspacing="1" cellpadding="0"><tbody><tr class="firstRow"><td colspan="1" rowspan="1" style="word-break: break-all;" width="231" valign="top">地区</td><td colspan="1" rowspan="1" style="word-break: break-all;" width="1454" valign="top">   <input type="text" id="ViewText.name" type1="flow_text" name="ViewText.name" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td style="word-break: break-all;" width="231" valign="top">标题</td><td style="word-break: break-all;" width="1454" valign="top"><input type="text" id="ViewText.name1" type1="flow_text" name="ViewText.name1" value="" valuetype="2" format="###.00" isflow="1" class="mytext" title="" align="0"/></td></tr></tbody></table><p> </p><p><br/></p>